package org.lyxy.ssmdemo.service;

import org.lyxy.ssmdemo.bean.User;

import java.util.List;

public interface UserService {

    //用户登录
    public User findUser(User user);

    //分页查询
    public List<User> findUserByPage(int startIndex, int pageSize);

    //计算页数
    public int findCountPage(int pageSize);

    //用户注册
    public int addUser(User user);
}
